package com.jgr.service.impl;

import com.jgr.dao.BookDao;
import com.jgr.dao.impl.BookDaoimpl;
import com.jgr.service.BookService;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class BookServiceimpl implements BookService , InitializingBean, DisposableBean {

    private BookDao bookDao;
    @Override
    public void save() {

        System.out.println("book Serivce save ....");
    }

    public void setBookDao(BookDao bookDao) {

        this.bookDao = bookDao;
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("service destroy");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("service init");
    }
}
